from .base import *  # noqa
import os

DEBUG = False
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG

APP_ID = 'wx18945c08b316825a'
APP_SECRET = 'a34238ab25b7d2d4213126328225200a'

SECRET_KEY = os.environ.get("SECRET_KEY", 'wuxinting')

ALLOWED_HOSTS = ['*']  # os.environ.get('ALLOWED_HOSTS', 'localhost').split(',')

ADMINS = (
    ('xinting', 'wuxintingz@163.com'),
)

MANAGERS = ADMINS

DATABASES = {
    'default': {
        # 'ENGINE': 'django.db.backends.postgresql_psycopg2',
        # 'NAME': 'iyinyue',
        # 'USER': os.environ['DB_USER'],
        # 'PASSWORD': os.environ.get('DB_PASSWORD', ''),
        # 'HOST': os.environ.get('DB_HOST', ''),
        # 'PORT': '',
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'iyinyue',
        'HOST': '118.126.91.205',
        'USER': 'iyyproduct',
        'PASSWORD': 'iyyproduct',
    }
}

print('Load Production')